﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace Yun.IM
{
    public class PushLogsList
    {
        /// <summary>
        /// 编号
        /// </summary>
        [XmlElement("id")]
        public int Id { get; set; }


        /// <summary>
        /// AppKey信息
        /// </summary>
        /// 
        [XmlElement("app_key_txt")]
        public long? AppKey { get; set; }

        /// <summary>
        /// 用户ID
        /// </summary>
        /// 
        [XmlElement("user_id")]
        public long UserId { get; set; }

        /// <summary>
        /// 推送目标：
        ///DEVICE:根据设备推送
        ///ACCOUNT:根据账号推送
        ///ALIAS:根据别名推送
        ///TAG:根据标签推送
        ///ALL:推送给全部设备
        /// </summary>
        /// 
        [XmlElement("target")]
        public string Target { get; set; }

        /// <summary>
        /// 根据Target来设定，多个值使用逗号分隔，最多支持100个，超过100分多次推送。
        ///Target=DEVICE，值如deviceid111,deviceid1111
        ///Target = ACCOUNT，值如account111,account222
        ///Target = ALIAS，值如alias111,alias222
        ///Target = TAG，支持单Tag和多Tag，格式请参考 标签格式
        ///Target=ALL，值为all
        /// </summary>
        /// 
        [XmlElement("target_value")]
        public string Target_Value { get; set; }

        /// <summary>
        /// MESSAGE：表示消息，默认值
        /// NOTICE：表示通知
        /// </summary>
        /// 
        [XmlElement("push_type")]
        public string Push_Type { get; set; }

        /// <summary>
        /// 设备类型，取值范围为：
        ///IOS：IOS设备
        ///ANDROID：Andriod设备
        ///ALL：全部类型设备
        /// </summary>
        /// 
        [XmlElement("device_type")]
        public string Device_Type { get; set; }

        /// <summary>
        /// 推送标题
        /// </summary>
        [XmlElement("push_title")]
        public string Push_Title { get; set; }

        /// <summary>
        /// 推送内容
        /// </summary>
        /// 
        [XmlElement("push_body")]
        public string Push_Body { get; set; }

        /// <summary>
        /// 推送方式 0-个别推送，1-全部推送
        /// </summary>
        /// 
        [XmlElement("push_away")]
        public int Push_away { get; set; }

        /// <summary>
        /// 推送时间
        /// </summary>
        /// 
        [XmlElement("push_time")]
        public string Push_Time { get; set; }


        /// <summary>
        /// 推送任务id
        /// </summary>
        [XmlElement("message_id")]
        public string MessageId { get; set; }


        /// <summary>
        /// 推送状态 0-已推送，1-定时推送，2-取消推送
        /// </summary>        
        [XmlElement("statue")]
        public int Statue { get; set; }

    }
}
